﻿
// NetEngine_WINAptAppDlg.h: 头文件
//

#pragma once

typedef struct  
{
	XNETHANDLE xhToken;
	TCHAR tszFileName[MAX_PATH];
}WINAPT_APPLIST;
// CNetEngineWINAptAppDlg 对话框
class CNetEngineWINAptAppDlg : public CDialogEx
{
	DECLARE_EASYSIZE
// 构造
public:
	CNetEngineWINAptAppDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_NETENGINE_WINAPTAPP_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CListCtrl m_ListRecord;
	afx_msg void OnBnClickedButton1();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	CEdit m_EditModuleName;
	afx_msg void OnDestroy();
	WINAPT_APPCONFIG st_AppConfig;
	BOOL WINApt_ReadConfig();
	BOOL WINApt_SendPktMsg(LPCTSTR lpszMsgBuffer, int nMsgLen);
	BOOL WINApt_ParseListLoad(LPCTSTR lpszMsgBuffer);
	CStatic m_StaticTips;
	afx_msg void OnNMRClickList2(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnUpdate32775(CCmdUI *pCmdUI);
	BOOL bIsRun;
	HANDLE hThread;
	list<WINAPT_APPLIST> stl_ListDlFile;
	CRITICAL_SECTION st_Locker;
	static DWORD WINAPI WINApt_Thread_Download(LPVOID lParam);
	afx_msg void OnUpdate32774(CCmdUI *pCmdUI);
	afx_msg void OnBnClickedRadio1();
	CButton m_RadioLocal;
	CButton m_RadioRemote;
	afx_msg void OnBnClickedRadio2();
};
